package com.m.dao.mapper;

import com.m.dao.entity.BlackWhiteManagerEntity;
import com.m.pojo.dto.blackwhite.BlackWhiteInfoDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author miracle
 * @since 2022-01-26
 */
@Mapper
public interface BlackWhiteManagerMapper {

    List<BlackWhiteInfoDto> getAllBlackWhiteListInfos(@Param("sceneName")String sceneName, @Param("engName") String engName, @Param("type") Integer type);

    void insertUseGeneratedKeys(@Param("blackWhiteManagerEntity")BlackWhiteManagerEntity blackWhiteManagerEntity);

    BlackWhiteManagerEntity selectByPrimaryKey(@Param("id")Long id);

    void deleteByPrimaryKey(@Param("id")Long id);
}
